from bs4 import BeautifulSoup
import requests


response = requests.get('http://mp.weixin.qq.com/s?__biz=MzIyOTA2ODU2MQ==&amp;mid=2650480403&amp;idx=1&amp;sn=6e02b1c8033d3fdc9d2f8513b88a7538&amp;chksm=f047e56dc7306c7b9210b1d0349d56ae42ad5182da351d86184029f44605e753efabe77c3bc3&amp;scene=27#wechat_redirect')
response.encoding = 'utf-8'
soup = BeautifulSoup(response.text, "html.parser")
contents =soup.find_all('p')
content_str=u''
for content in contents:
    if content.img!=None:
        content_str= content_str+content.img['data-src']
        print content_str
        pass
    else:
        content_str= content_str+content.text+'\n'
        pass
    pass
print content_str